home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / ISp Sample / Source / ToolboxUtils.c < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.2 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ToolboxUtils.c
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (BWS)    Brent Schorsch
  21.  
  22.     Change History (most recent first):
  23.  
  24.        <SP1>      7/1/99    BWS        first checked in
  25. */
  26.  
  27. //•    ————————————————————————————————————————    Includes
  28.  
  29. #include <Quickdraw.h>
  30.  
  31. #include "ToolboxUtils.h"
  32.  
  33. //•    ————————————————————————————————————————    Private Definitions
  34. //•    ————————————————————————————————————————    Private Types
  35. //•    ————————————————————————————————————————    Private Variables
  36. //•    ————————————————————————————————————————    Private Functions
  37. //•    ————————————————————————————————————————    Public Variables
  38.  
  39. //•    ————————————————————    GlobalToLocalRect
  40.  
  41. void
  42. GlobalToLocalRect(RectPtr ioRect)
  43. {
  44.     GlobalToLocal((Point *) &ioRect->top);
  45.     GlobalToLocal((Point *) &ioRect->bottom);
  46. }
  47.  
  48. //•    ————————————————————    LocalToGlobalRect
  49.  
  50. void
  51. LocalToGlobalRect(RectPtr ioRect)
  52. {
  53.     LocalToGlobal((Point *) &ioRect->top);
  54.     LocalToGlobal((Point *) &ioRect->bottom);
  55. }
  56.